// 探望
import request from '@/utils/request.js'; // 封装的request.js文件的位置
export const getListVisitByUser = (data)=>{
	return request('/mobile/visit/listVisitByUser',"GET",data)
}
// 获取老人探望详细信息
export const getVisitDetails = (data)=>{
	return request('/mobile/visit/getVisitDetails',"GET",data)
}
// 审核探望申请
export const checkVisit = (data)=>{
	return request('/mobile/visit/checkVisit',"POST",data)
}
// 门卫查询当日探望列表
export const listVisitForGuard = (data)=>{
	return request('/mobile/visit/listVisitForGuard',"GET",data)
}
// 门卫查询探望离院列表
export const visitorInfoList = (data)=>{
	return request('/mobile/visitorInfo/listVisitForGuard',"GET",data)
}
// 进院审批中添加来访人员并确认进院
export const insertVisitorInfo = (data)=>{
	return request('/mobile/visitorInfo/insertVisitorInfo',"POST",data)
}
// 临时探望添加来访人员并确认进院
export const insertTempVisitorInfo = (data)=>{
	return request('/mobile/visitorInfo/insertTempVisitorInfo',"POST",data)
}
// 门卫离院确认

export const visitationAway = (visitInfoId)=>{
	return request(`/mobile/visitorInfo/visitationAway?visitInfoId=${visitInfoId}`,"POST")
}
// 获取来访人员信息详情
export const getVisitorDetails = (data)=>{
	return request('/mobile/visitorInfo/getVisitorDetails',"GET",data)
}